define([],function(){
	var tpl = {};

	tpl.patients = function(){
		var html = "";
		html += patients();
		return html;
	}
	tpl.info = function(){
		var html = "";
		html += info();
		return html;
	}
	tpl.scheme = function(){
		var html = "";
		html += scheme();
		return html;
	}

	var patients = function(){
		return 	'<script id="nutrition_addSchemePatients" type="text-html">'+
				'	<ul>'+
				'		{{each list as value i}}'+
	            '      		<li>'+
	            '				{{value.patientName}} ('+
	            '				{{if value.gender == "F"}}'+
	            '					<span class="girl">女孩</span>'+
	            '				){{else}}'+
	            '					<span class="boy">男孩</span>'+
	            '				){{/if}}'+
	            '			</li>'+
	            '		{{/each}}'+
	            '   </ul>'+
				'</script>';
	}
	var info = function(){
		return 	'<script id="nutrition_addSchemeInfo" type="text-html">'+
				'	 <div class="info-name" patientId="{{data.patientId}}">'+
	            '        <img src="page/nutrition/imgs/{{if data.gender=="F"}}women{{else}}man{{/if}}.png">'+
	            '        <span>{{data.patientName}}</span>'+
	            '    </div>'+
	            '    <p><span>年龄：</span>{{data.age}}</p>'+
	            '    <p><span>队列：</span>{{data.followQueueName}}</p>'+
	            '    <p><span>手机号：</span>{{data.phoneNum}}</p>'+
				'</script>';
	}
	var scheme = function(){
		return 	'<script id="nutrition_addSchemeScheme" type="text-html">'+
				'	{{each list as value i}}'+
				'		<option value="{{value.schemeVersionId}}">{{value.versionName}}</option>'+
				'	{{/each}}'+
				'</script>';
	}

	return tpl;
});